package _996FangWenZhe.impl;

import _996FangWenZhe.ComputerPartVisitor;

/**
 * @ComputerPartDisplayVisitor: 访问者 实现类
 * @author: ZBoHang
 * @time: 2021/9/18 9:00
 */
public class ComputerPartDisplayVisitor implements ComputerPartVisitor {
    @Override
    public void visit(Computer computer) {
        System.out.println("display computer");
    }

    @Override
    public void visit(Mouse mouse) {
        System.out.println("display mouse");
    }

    @Override
    public void visit(Monitor monitor) {
        System.out.println("display monitor");
    }

    @Override
    public void visit(KeyBoard keyBoard) {
        System.out.println("display keyboard");
    }
}
